package com.hrm.service.impl;

import com.hrm.dao.DepartmentMapper;
import com.hrm.dto.EmpDepDTO;
import com.hrm.entity.Department;
import com.hrm.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: zy
 * @Date: 2020/5/27 11:17
 * @Description:
 */
@Service
public class DepartmentServiceImlp implements DepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;


    @Override
    public List<Department> departmentList() {
        return departmentMapper.departmentList();
    }

    @Override
    public List<EmpDepDTO> empDepList(Integer deptId) {
        return departmentMapper.empDepList(deptId);
    }

    @Override
    public List<String> depNameList() {
        return departmentMapper.depNameList();
    }

    @Override
    public Department selectByName(String deptName) {
        return departmentMapper.selectByName(deptName);
    }


}
